package com.baizhi.genericity;

/**
 * 自定义泛型类的使用
 */
public class StudentTest {
    public static void main(String[] args) {

        Student<Integer> st = new Student<>("安尚华",90);
        System.out.println(st);

        Student<Double> st2 = new Student<>("李娜",90.0);
        System.out.println(st2);

        Student<String> st3 = new Student<>();
        st3.setName("白玉石");
        st3.setScore("九十分");
        System.out.println(st3);

    }
}
